<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            /* 我们从什么距离去看东西 */
            perspective: 500px;
        }
        
        div {
            width: 200px;
            height: 200px;
            background-color: #f00;
            margin: 100px auto;
            transition: all 0.5s;
            /* transform: translateZ(100px); */
        }
        
        div:hover {
            /* transform: translate3d(100px, 50px, 0); */
            transform: translateX(100px);
            /* transform: translateZ(-100px); */
        }
    </style>
</head>

<body>
    <div>div</div>
</body>

</html>